<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>跳转提示</title>
    <style type="text/css">
        *{
            padding: 0;
            margin: 0;
        }
        body{
            background: #fff;
            font-family: '微软雅黑';
            color: #444;
            font-size: 18px;
        }
        .message{
            width: 600px;
            height: 200px;
            margin:auto;
            border:1px solid #CCCCCC;
            margin-top: 100px;
        }
        .head{
            width: 100%;
            height: 30px;
            background: #F3F3F3;
            text-align: center;
            padding-top: 5px;
        }
        .content{
            height: 120px;
            width: 100%;
        }
        .success {
            text-align: center;
            margin-top: 30px;
            color: limegreen;
        }
        .error{
            text-align: center;
            margin-top: 30px;
            color: red;
        }
        .jump{
            text-align: center;
            margin-top: 20px;
        }
        a{
            color: #9C9C9C;
            text-decoration:none
        }
        a:hover{
            text-decoration: underline;
        }
    </style>

</head>

<body>
<div class="message">

    <div class="head"><span>提示信息&nbsp;:</span></div>

    <div class="content">

        <?php if($message != false):?>

        <p class="success"><?=$message?></p>

        <?php else:?>

        <p class="error"><?=$error?></p>

        <?php endif;?>

        <p class="detail" style="height: 15px"></p>

        <p class="jump">

            <a id="href" href="<?=$jumpUrl?>">如果你的浏览器&nbsp;<b id="wait"><?=$waitSecond?></b>&nbsp;秒后没有自动跳转，请点击这里...</a>

        </p>

    </div>

</div>

<script type="text/javascript">

    (function(){

        var wait = document.getElementById('wait'),href = document.getElementById('href').href;

        var interval = setInterval(function(){

            var time = --wait.innerHTML;

            if(time <= 0) {

                location.href = href;

                clearInterval(interval);

            };

        }, 1000);

    })();

</script>

</body>

</html>